package hw.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import project.bean.StudentBean;

import java.util.List;

public interface IStudentMapper {
    @Insert("insert into t_student(s_name,s_birthday,s_phone) values(#{name},#{birthday},#{phone})")
    public void addUser(StudentBean studentBean);
    @Select("select *from t_student")
    @ResultMap("studentMap")
    public List<StudentBean> findAllStudent();
}
